﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Threading;

namespace 校园网小工具
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>

        [STAThread]
        
        static void Main()
        {
             bool canCreateNew;
            Mutex n = new Mutex(true, "NetTool", out canCreateNew);
            if (canCreateNew)
            {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
            n.ReleaseMutex();
            }
            else
            {
                MessageBox.Show("程序已经运行,小伙子你这样搞会冲突的。");
            }
        }
    }
}
